set(gcf,'paperunits','centimeters')
 set(gcf,'papersize',[15.5,15.5]) % Desired outer dimensions
                                      % of figure
 set(gcf,'paperposition',[-1,-1.7,18,18]) % Place plot on figure
 
print -dpdf myfigure.pdf